package Zhouliu;
import java.util.Scanner;
public class Test {
    public static void main(String [] args){
        Employee employee[] = {
                new SalariedEmployee(8000),
                new HourlyEmployee(13,500),
                new SalesEmployee(1000000,0.15),
                new BasePlusSalesEmployee(4000)
        };
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入当前月份:");
        int num = scanner.nextInt();
        System.out.println();

        employee[0].print();
        employee[0].getSalary(num);
        System.out.println();
        employee[1].print();
        employee[1].getSalary(num);
        System.out.println();
        employee[2].print();
        employee[2].getSalary(num);
        System.out.println();
        employee[3].print();
        employee[3].getSalary(num);

    }
}



